package com.cn.demo4.service.impl;

import com.cn.demo4.dao.NewsTypeDao;
import com.cn.demo4.dao.impl.NewsTypeDaoImpl;
import com.cn.demo4.model.NewsTypeModel;
import com.cn.demo4.service.INewsTypeService;

import java.util.List;

public class NewsTypeServiceImpl implements INewsTypeService {
    @Override
    public List<NewsTypeModel> findAll() {
        NewsTypeDao newsTypeDao = new NewsTypeDaoImpl();

        return newsTypeDao.findAll();
    }

    @Override
    public List<NewsTypeModel> getNewsTypeModelListForHome() {
        NewsTypeDao newsTypeDao = new NewsTypeDaoImpl();
        return newsTypeDao.getNewsTypeModelListForHome();
    }
}
